﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Small.Html.Options
{

    public class JqReader:JqBase
    {

        public string name;
        public JqReader() { }
        public JqReader(string jqReaderName)
        {
            this.name=jqReaderName;
        }

        private string total, page, records, rows, id, cell;

        public string Cell
        {
            get { return cell; }
            set { cell = value; }
        }

        public string Id
        {
            get { return id; }
            set { id = value; }
        }

        public string Rows
        {
            get { return rows; }
            set { rows = value; }
        }

        public string Records
        {
            get { return records; }
            set { records = value; }
        }

        public string Page
        {
            get { return page; }
            set { page = value; }
        }

        public string Total
        {
            get { return total; }
            set { total = value; }
        }

      public override string GenerateString()
      {
          List<String> list = new List<string>();
          list.Add(IsStringNull("total", total));
          list.Add(IsStringNull("page", page));
          list.Add(IsStringNull("records", records));
          list.Add(IsStringNull("rows", rows));
          list.Add(IsStringNull("cell", cell));
          list.Add(IsStringNull("id", id));

          return name+" :{"+string.Join(",",list)+OthertAtributes+" }";
      }
    }
   public class JqXmlReader:JqReader
    {
       public JqXmlReader()
           : base("xmlReader")
       {
       
       }
    }

    public  class JqJsonReader:JqReader
    {
        public JqJsonReader()
            : base("jsonReader")
       {
       
       }
    }


    public class JqTreeReader :JqReader
    {
        public JqTreeReader()
            : base("treeReader")
       {
       
       }
    
    }

}


